<style type="text/css">
    .bjui-pageHeader{
        font-size: 18px;
        font-weight: bold;
    }
    .form{
        padding: 15px;
    }
    .form dl {
        overflow: hidden;
        padding-top: 15px;
    }

    .form dt {
        color: #666;
        float: left;
        font-size: 14px;
        padding: 3px 0 0;
        width: 11%;
    }
    .form dd {
        float: left;
        line-height: 22px;
    }
    dd.desc {
        height: 30px;
        padding: 0 10px;
        width: 150px;
    }
</style>
<div class="bjui-pageHeader">
    <div class="glyphicon glyphicon-th-large">字段管理</div>
    <button type="button" data-url="{:U('Model/addfieldset',array('model_id'=>$model_id))}" class="btn btn-default" data-toggle="navtab" data-id="Model-addfieldset" data-title="添加字段" data-icon="plus">添加字段</button>
</div>
<div class="bjui-pageContent">
    <table class="table table-bordered table-hover table-striped table-top">
        <thead>
            <tr>
                <th>表单提示文字</th>
                <th>数据字段名</th>
                <th>数据类型</th>
                <th>排序</th>
                <th>维护</th>
            </tr>
        </thead>
        <tbody>
            <foreach name='fields' item='f'>
                <tr>
                    <td>{$f.itemname}</td>
                    <td>{$f.field}</td>
                    <td>{$f.type}</td>
                    <td>{$f.sort}</td>
                    <td><a href="{:U('Model/editfieldset',array('id'=>$f['id']))}" data-toggle="dialog" data-id="Model-editfieldset" data-title="修改字段" data-width="760">修改</a>  <a href="{:U('Model/delfieldset',array('id'=>$f['id'],'mid'=>$f['model_id']))}" data-toggle="doajax" data-confirm-msg="确定要删除吗？" data-type="get">删除</a></td>
                </tr>
            </foreach>
        </tbody>
    </table>
</div>
<div class="bjui-pageFooter">
    <ul>
        <li>
            <button type="button" class="btn-close" data-icon="close">关闭</button>
        </li>
    </ul>
</div>